<?php
class Pageley_Domain_FileProperty extends Pageley_Domain_ValueProperty {
    
    private $fileManager;
    
    public function __construct($fileManager, $value = null) {
        $this->fileManager = $fileManager;
        parent::__construct($value);
    }
    
    public function setValue($value) {
        if($value !== null) {
            $value->setFileManager($this->fileManager);
        }
        parent::setValue($value);
    }
}